Skip to content

Update SparkFun_Qwiic_Humidity_AHT20.cpp #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 15, 2021

Conversation

jakebrown5
Copy link
Contributor

Nibbles in initialization data byte (MSB) were flipped, not matching AHT20 datasheet.

Initialization data byte (MSB) was flipped, not matching AHT20 datasheet.
@nseidle
Copy link
Member

nseidle commented Aug 29, 2021

Was something failing?

@jakebrown5
Copy link
Contributor Author

jakebrown5 commented Aug 29, 2021 via email

@nseidle
Copy link
Member

nseidle commented Aug 30, 2021

Got it thanks! I'll get it tested shortly.

@nseidle
Copy link
Member

nseidle commented Oct 14, 2021

What datasheet are you looking at? My reference.

image

Original code is correct per datasheet. I've tested both main branch and your PR and both work. I am far more suspicious of the ESP32-S2 at this point. This library doesn't use repeated starts but I'm still not convinced the ESP32-S2 core is completely sound.

If it works for you, excellent. But I can't replicate and I believe we're following the datasheet so I'm going to pass for now. Regardless, I really appreciate the PR. Let me know if the plot thickens.

@nseidle nseidle closed this Oct 14, 2021
@jakebrown5
Copy link
Contributor Author

jakebrown5 commented Oct 14, 2021 via email

@nseidle
Copy link
Member

nseidle commented Oct 14, 2021

Current code is here:

image

Above, current main branch code, follows datasheet:

0xBE, 0x08, 0x00.

@jakebrown5
Copy link
Contributor Author

jakebrown5 commented Oct 14, 2021 via email

@nseidle
Copy link
Member

nseidle commented Oct 15, 2021

GAHHH! Wow. Brains see what they want to see. Sorry. You said nibbles and I read bytes. Yep. Thanks for taking the time.

@nseidle nseidle reopened this Oct 15, 2021
@nseidle nseidle merged commit b19c7d4 into sparkfun:main Oct 15, 2021
@jakebrown5
Copy link
Contributor Author

jakebrown5 commented Oct 15, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants